<?php

use Drupal\shusy_plant_grass\Entity\ShusyPlantGrass;

function shusy_plant_grass_shusy_plant_grass_add_page() {
  $e = new ShusyPlantGrass();
  module_load_include('inc', 'shusy_plant_grass', 'shusy_plant_grass.forms');
  return drupal_get_form('shusy_plant_grass_shusy_plant_grass_entity_form', $e, 'add');
}

function shusy_plant_grass_shusy_plant_grass_view_page(ShusyPlantGrass $e) {
  return entity_view($e->entityType(), [$e]);
}

function shusy_plant_grass_shusy_plant_grass_edit_page(ShusyPlantGrass $e) {
  module_load_include('inc', 'shusy_plant_grass', 'shusy_plant_grass.forms');
  return drupal_get_form('shusy_plant_grass_shusy_plant_grass_entity_form', $e, 'edit');
}

function shusy_plant_grass_shusy_plant_grass_delete_page(ShusyPlantGrass $e) {
  module_load_include('inc', 'shusy_plant_grass', 'shusy_plant_grass.forms');
  return drupal_get_form('shusy_plant_grass_shusy_plant_grass_delete_form', $e);
}

